package com.study.mybatis.plugins;

import java.lang.reflect.InvocationHandler;

/**
 * @author yuantongqin
 * 2021/8/2
 * 拦截器的定义
 **/
public interface Interceptor {

    Object intercept(Invocation invocation);

    default Object plugin(Object target){
        return Plugin.wrap(target,this);
    }
}
